<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/html">
<head>
    <base th:href="${#request.getContextPath()}+'/'">
    <meta charset="UTF-8">
    <title>扫码失败</title>
    <style type="text/css">
        .d1{
            position: absolute;
            top: 50%;
            left: 50%;
            -webkit-transform: translate(-50%,-50%);
            -moz-transform: translate(-50%,-50%);
            -ms-transform: translate(-50%,-50%);
            -o-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
        }
    </style>
</head>
<body>
   <div class="d1">
       <h1>二维码已过期，&nbsp;&nbsp;<span id="time">5</span>&nbsp;s后将会自动重新生成</h1>
   </div>

<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript">;</script>
<script src="/jquery-3.1.1.js"></script>

<script language="JavaScript">
    // setTimeout('window.location= "http://10.238.0.185:7839/image"',5000)
    var timeName = document.getElementById('time');
    var t = 5;
    var timer = setInterval(function () {
        timeName.innerHTML = t;
        t--;
        if (t<0){
            clearInterval();
            window.location.href="http://10.238.9.131:80/image";
        }
    },1000)

</script>
</body>
</html>